package com.bawei.library_common.utils

import com.bawei.library_common.BaseApplication
import com.bawei.library_log.Logger
import com.bawei.library_log.LoggerLevel
import com.bawei.library_log.LoggerStrategy

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/20 10:36
 * @Description : LoggerUtils
 */
class LoggerUtils {
    companion object{
        private val logger = Logger.Builder()
            .setLevel(LoggerLevel.Error)
            .setLoggerStrategy(LoggerStrategy.LOGCAT)//测略
            .isDebug(true)
            .setTAG("iVideo")
            .setSaveUrl("log.txt")
            .setContext(BaseApplication.instance)
            .build()

        fun d(tag:String,log:String){
            logger.d(tag,log)
        }

        fun v(tag:String,log:String){
            logger.v(tag,log)
        }

        fun e(tag:String,log:String){
            logger.e(tag,log)
        }

        fun i(tag:String,log:String){
            logger.i(tag,log)
        }

        fun w(tag:String,log:String){
            logger.w(tag,log)
        }


    }
}